package com.aipolice.web;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;

@Controller
public class AdminPageController {
    @GetMapping(value="/admin")
    public String admin(){
        return "redirect:admin_user_list";
    }

    @GetMapping (value="/adminface")
    public String faceManager(){
        return "redirect:admin_face_list";
    }



    @GetMapping(value="/admin_user_list")
    public String listCategory(Model model){
        return "admin/listUsers";
    }

    @GetMapping(value="/admin_face_list")
    public String listFace(Model model){
        return "admin/listFaceInfo";
    }

    @GetMapping(value="/admin_news_list")
    public String listNew(Model model){
        return "admin/listNewsInfo";
    }

    @GetMapping(value="/admin_report_list")
    public String listReport(Model model){
        return "admin/listReportsInfo";
    }

    @GetMapping(value="/admin_write_news")
    public String writerNews(Model model){
        return "admin/writeNews";
    }

    @GetMapping(value="/admin_edit_news")
    public String editNews(Model model){
        return "admin/editNews";
    }

    @GetMapping("/admin_detail_report")
    public String report(Model model){
        return "admin/detailReport";
    }


    @GetMapping(value="/login")
    public String login(){
        return "fore/login";
    }
}
